package com.taotao.frame.conf;

import com.taotao.frame.common.redis.RedisClient;
import com.taotao.frame.common.redis.RedisClientImpl;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * <p>
 *
 * </p>
 *
 * @author fanbeibei
 * @version 1.0.0
 * @date 2023/3/13 14:51
 */
@Configuration
public class RedisClientConfiguration {

    @Autowired
    private RedissonClient redissonClient;

    @Bean
    public RedisClient redisClient() {
        return new RedisClientImpl(redissonClient);

    }


}
